Integrand size = 17, antiderivative size = 27 \[ \int \frac {\sqrt {1+x^2}}{-1+x^2} \, dx=\text {arcsinh}(x)-\sqrt {2} \text {arctanh}\left (\frac {\sqrt {2} x}{\sqrt {1+x^2}}\right ) \]
[Out]
Time = 0.01 (sec) , antiderivative size = 27, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.235, Rules used = {399, 221, 385, 213} \[ \int \frac {\sqrt {1+x^2}}{-1+x^2} \, dx=\text {arcsinh}(x)-\sqrt {2} \text {arctanh}\left (\frac {\sqrt {2} x}{\sqrt {x^2+1}}\right ) \]
[In]
[Out]
Rule 213
Rule 221
Rule 385
Rule 399
Rubi steps \begin{align*} \text {integral}& = 2 \int \frac {1}{\left (-1+x^2\right ) \sqrt {1+x^2}} \, dx+\int \frac {1}{\sqrt {1+x^2}} \, dx \\ & = \sinh ^{-1}(x)+2 \text {Subst}\left (\int \frac {1}{-1+2 x^2} \, dx,x,\frac {x}{\sqrt {1+x^2}}\right ) \\ & = \sinh ^{-1}(x)-\sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {2} x}{\sqrt {1+x^2}}\right ) \\ \end{align*}
Time = 0.09 (sec) , antiderivative size = 49, normalized size of antiderivative = 1.81 \[ \int \frac {\sqrt {1+x^2}}{-1+x^2} \, dx=-\sqrt {2} \text {arctanh}\left (\frac {1-x^2+x \sqrt {1+x^2}}{\sqrt {2}}\right )-\log \left (-x+\sqrt {1+x^2}\right ) \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(56\) vs. \(2(21)=42\).
Time = 2.43 (sec) , antiderivative size = 57, normalized size of antiderivative = 2.11
method | result | size |
pseudoelliptic | \(-\frac {\ln \left (\frac {-x +\sqrt {x^{2}+1}}{x}\right )}{2}+\frac {\ln \left (\frac {x +\sqrt {x^{2}+1}}{x}\right )}{2}-\sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {2}\, \sqrt {x^{2}+1}}{2 x}\right )\) | \(57\) |
trager | \(\ln \left (x +\sqrt {x^{2}+1}\right )-\frac {\operatorname {RootOf}\left (\textit {\_Z}^{2}-2\right ) \ln \left (-\frac {3 \operatorname {RootOf}\left (\textit {\_Z}^{2}-2\right ) x^{2}+4 \sqrt {x^{2}+1}\, x +\operatorname {RootOf}\left (\textit {\_Z}^{2}-2\right )}{\left (-1+x \right ) \left (1+x \right )}\right )}{2}\) | \(61\) |
default | \(\frac {\sqrt {\left (-1+x \right )^{2}+2 x}}{2}+\operatorname {arcsinh}\left (x \right )-\frac {\sqrt {2}\, \operatorname {arctanh}\left (\frac {\left (2+2 x \right ) \sqrt {2}}{4 \sqrt {\left (-1+x \right )^{2}+2 x}}\right )}{2}-\frac {\sqrt {\left (1+x \right )^{2}-2 x}}{2}+\frac {\sqrt {2}\, \operatorname {arctanh}\left (\frac {\left (2-2 x \right ) \sqrt {2}}{4 \sqrt {\left (1+x \right )^{2}-2 x}}\right )}{2}\) | \(84\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 67 vs. \(2 (21) = 42\).
Time = 0.25 (sec) , antiderivative size = 67, normalized size of antiderivative = 2.48 \[ \int \frac {\sqrt {1+x^2}}{-1+x^2} \, dx=\frac {1}{2} \, \sqrt {2} \log \left (\frac {9 \, x^{2} - 2 \, \sqrt {2} {\left (3 \, x^{2} + 1\right )} - 2 \, \sqrt {x^{2} + 1} {\left (3 \, \sqrt {2} x - 4 \, x\right )} + 3}{x^{2} - 1}\right ) - \log \left (-x + \sqrt {x^{2} + 1}\right ) \]
[In]
[Out]
\[ \int \frac {\sqrt {1+x^2}}{-1+x^2} \, dx=\int \frac {\sqrt {x^{2} + 1}}{\left (x - 1\right ) \left (x + 1\right )}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 59 vs. \(2 (21) = 42\).
Time = 0.29 (sec) , antiderivative size = 59, normalized size of antiderivative = 2.19 \[ \int \frac {\sqrt {1+x^2}}{-1+x^2} \, dx=-\frac {1}{2} \, \sqrt {2} \operatorname {arsinh}\left (\frac {2 \, x}{{\left | 2 \, x + 2 \right |}} - \frac {2}{{\left | 2 \, x + 2 \right |}}\right ) - \frac {1}{2} \, \sqrt {2} \operatorname {arsinh}\left (\frac {2 \, x}{{\left | 2 \, x - 2 \right |}} + \frac {2}{{\left | 2 \, x - 2 \right |}}\right ) + \operatorname {arsinh}\left (x\right ) \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 70 vs. \(2 (21) = 42\).
Time = 0.29 (sec) , antiderivative size = 70, normalized size of antiderivative = 2.59 \[ \int \frac {\sqrt {1+x^2}}{-1+x^2} \, dx=-\frac {1}{2} \, \sqrt {2} \log \left (\frac {{\left | 2 \, {\left (x - \sqrt {x^{2} + 1}\right )}^{2} - 4 \, \sqrt {2} - 6 \right |}}{{\left | 2 \, {\left (x - \sqrt {x^{2} + 1}\right )}^{2} + 4 \, \sqrt {2} - 6 \right |}}\right ) - \log \left (-x + \sqrt {x^{2} + 1}\right ) \]
[In]
[Out]
Time = 0.17 (sec) , antiderivative size = 59, normalized size of antiderivative = 2.19 \[ \int \frac {\sqrt {1+x^2}}{-1+x^2} \, dx=\mathrm {asinh}\left (x\right )+\frac {\sqrt {2}\,\left (\ln \left (x-1\right )-\ln \left (x+\sqrt {2}\,\sqrt {x^2+1}+1\right )\right )}{2}-\frac {\sqrt {2}\,\left (\ln \left (x+1\right )-\ln \left (\sqrt {2}\,\sqrt {x^2+1}-x+1\right )\right )}{2} \]
[In]
[Out]